package com.zzc.sale.service;

import com.hos.entity.stock.Purchase;
import com.hos.entity.stock.PurchaseItem;
import com.zzc.sale.mapper.PurchaseItemMapper;
import com.zzc.sale.vo.NewPurchaseVo;
import com.zzc.sale.vo.PurchaseVo;

import java.util.List;
import java.util.Map;

/**
 * @author：xIAO_ZHOU_TX
 * @date：Created in 2023/12/19 11:50
 * @description：
 * @modified By：
 * @version:
 */
public interface PurchaseItemService {
    /**
     * 添加采购单和详情 ==>暂存
     * @return
     */
    Integer addPurchase(NewPurchaseVo newPurchaseVo);

    /**
     * 根据采购单据ID查询采购详情信息
     * @param purchaseId
     * @return
     */
    List<PurchaseItem> getPurchaseItemById(String purchaseId);

    /**
     * 添加采购单和详情并提交审核 ==>直接提交
     * @param newPurchaseVo
     * @return
     */
    Integer addPurchaseToAudit(NewPurchaseVo newPurchaseVo);

    Map<String,Object> queryPurchaseAndItemByPurchaseId(String purchaseId);

    Integer erpAddPurchase(NewPurchaseVo newPurchaseVo);

    Integer erpAddPurchaseToAudit(NewPurchaseVo newPurchaseVo);
}